import request from '@/utils/request'
import {encodeParams} from '@/utils'

//列表
export function getList(data) {
  return request({
    url: '/api/systemStatement?${encodeParams(data)}',
    method: 'POST',
    data
  })
}

//创建
export function create(data) {
  return request({
    url: '/api/systemStatement/create',
    method: 'POST',
    data
  })
}


//根据id查询
export function getById(id) {
  return request({
    url: `/api/systemStatement/get/${id}`,
    method: 'GET',
  })
}

//更新
export function update(data) {
  return request({
    url: '/api/systemStatement/update',
    method: 'POST',
    data
  })
}

export default {
  getList, update, getById, create,
}
